package com.hypo.business.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author shenkunlin
 * @since 2025-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_sys_user")
@Schema(description = "系统用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(title = "名字")
    private String name;

    @Schema(title = "账号")
    private String account;

    @Schema(title = "密码")
    private String password;

    @Schema(title = "性别：1 男  2 女")
    private Integer gender;

    @Schema(title = "联系方式")
    private String phone;

    @Schema(title = "SaaS标识")
    private String saasId;

    @Schema(title = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(title = "创建人账号")
    private String createBy;

    @Schema(title = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(title = "修改人账号")
    private String updateBy;

    @Schema(title = "是否删除  1 未删除  2 已删除")
    private Integer isDel;


}
